import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
  server: {
    port: 8080,
    proxy: {
      "/api": {
        target: "http://192.168.10.57:8081/",
      },
    },
  },
  build: {
    rollupOptions: {
      includes: ["@element-plus/icons-vue"],
    },
  },
  plugins: [vue()],
});
